package com.example.dynamicdatasource.mapper;

import com.example.dynamicdatasource.pojo.Province;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProvinceMapper {

    // 自动使用当前上下文指定的数据源
    @Select("SELECT * FROM province_info")
    Province selectByCode(String code);

}
